<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<jsp:include page="fragments/header.jsp">
	<jsp:param name="title" value="Home" />
</jsp:include>

<p>
	Welcome to Bookstore...<br />

	<c:if test="${loggedIn==true}">
		<br />
		Hello <b>${user.username}</b> <c:if test="${not empty message}">, ${message}</c:if>
		<br /> 
	</c:if>
</p>

<ul class="list">
	<c:forEach var="role" items="${userRoles}">
		<li>
			<jsp:include page="fragments/role_menu.jsp">
				<jsp:param name="role" value="${role}" />
			</jsp:include>
		</li>
	</c:forEach>
</ul>
<!-- 
<br />
Link to admin page:
<a href="admin">click here</a>
<br />
Link to user page:
<a href="user">click here</a>
<br />
Link to unauthorized page
<a href="unauthorized">click here</a>
-->
<jsp:include page="fragments/footer.jsp" />
